/* 整体页面容器 */
.forgot-password-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-image: url('../../../public/Image/login_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* 顶部导航栏 */
.forgot-password-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  position: relative;
  z-index: 10;
}

.back-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-button:active {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  flex: 1;
}

.header-placeholder {
  width: 40px;
  height: 40px;
}

/* 内容容器 */
.forgot-password-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* padding: 0 20px; */
  position: relative;
  z-index: 5;
}

/* 白色卡片 */
.forgot-password-card {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-top: 40px;
  box-sizing: border-box;
}

/* 输入框组（带按钮） */
.input-group-with-button {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 12px;
  gap: 12px;
}

.input-wrapper {
  flex: 1;
}

.input-group {
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 12px;
}

.forgot-input {
  border: none !important;
  background: transparent !important;
  font-size: 16px;
  padding: 8px 0 !important;
  outline: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
}

.forgot-input::placeholder {
  color: #999;
  font-size: 16px;
}

.verify-button {
  flex-shrink: 0;
  height: 36px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  padding: 0 16px !important;
  min-width: 100px;
  -webkit-tap-highlight-color: transparent;
}

/* 下一步按钮容器 */
.next-button-container {
  width: 94%;
  margin-top: 40px;
  padding: 0 20px;
  box-sizing: border-box;
}

.next-button {
  height: 48px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  background: white !important;
  color: #1890ff !important;
  border: 2px solid #1890ff !important;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

.next-button:active {
  transform: scale(0.98);
  background: #f0f8ff !important;
}

/* 设置新密码页面样式 */
.setPassMain {
  width: 100%;
  max-width: 320px;
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-top: 40px;
  box-sizing: border-box;
}

.setPassMain>div {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 12px;
  min-height: 44px;
}

.setPassMain>div:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.setPassMain input {
  border: none !important;
  background: transparent !important;
  font-size: 16px;
  padding: 8px 0 !important;
  outline: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex: 1;
}

.setPassMain input::placeholder {
  color: #999;
  font-size: 16px;
}

.setPassMain .password-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
  position: initial;
}

.setPassMain .password-toggle:active {
  background-color: rgba(0, 0, 0, 0.05);
}

.setPassMain .complete-button {
  margin-top: 40px !important;
  height: 48px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  background: #1890ff !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

.setPassMain .complete-button:active {
  transform: scale(0.98);
  background: #1677ff !important;
}

/* 移动端适配媒体查询 */

/* 小屏幕手机 */
@media (max-width: 375px) {
  .forgot-password-page {
    padding: 0 12px;
  }

  .forgot-password-header {
    padding: 12px 16px;
  }

  .header-title {
    font-size: 16px;
  }

  .forgot-password-container {
    padding: 0 12px;
  }

  .forgot-password-card,
  .setPassMain {
    padding: 20px 16px;
    margin-top: 30px;
  }

  .input-group-with-button,
  .input-group {
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .verify-button {
    height: 32px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
    min-width: 90px;
  }

  .next-button,
  .complete-button {
    height: 44px !important;
    font-size: 15px !important;
  }

  .next-button-container {
    margin-top: 30px;
    padding: 0 12px;
  }
}

/* 超小屏幕 */
@media (max-width: 320px) {
  .forgot-password-page {
    padding: 0 8px;
  }

  .forgot-password-header {
    padding: 10px 12px;
  }

  .header-title {
    font-size: 15px;
  }

  .forgot-password-container {
    padding: 0 8px;
  }

  .forgot-password-card,
  .setPassMain {
    padding: 16px 12px;
    margin-top: 20px;
    border-radius: 12px;
  }

  .input-group-with-button,
  .input-group {
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  .forgot-input,
  .setPassMain input {
    font-size: 15px;
  }

  .forgot-input::placeholder,
  .setPassMain input::placeholder {
    font-size: 15px;
  }

  .verify-button {
    height: 30px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
    min-width: 80px;
  }

  .next-button,
  .complete-button {
    height: 42px !important;
    font-size: 14px !important;
  }

  .next-button-container {
    margin-top: 25px;
    padding: 0 8px;
  }

  .password-toggle {
    width: 28px;
    height: 28px;
  }
}

/* 横屏模式 */
@media (orientation: landscape) and (max-height: 500px) {
  .forgot-password-container {
    padding: 10px 20px;
  }

  .forgot-password-card,
  .setPassMain {
    margin-top: 20px;
    padding: 20px 16px;
  }

  .input-group-with-button,
  .input-group {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .next-button-container {
    margin-top: 20px;
  }

  .next-button,
  .complete-button {
    height: 42px !important;
  }
}

/* 大屏幕手机 */
@media (min-width: 414px) and (max-width: 768px) {

  .forgot-password-card,
  .setPassMain {
    max-width: 360px;
    padding: 28px 24px;
  }

  .verify-button {
    height: 40px !important;
    font-size: 15px !important;
    padding: 0 18px !important;
  }

  .next-button,
  .complete-button {
    height: 52px !important;
    font-size: 17px !important;
  }
}

/* 平板 */
@media (min-width: 768px) {
  .forgot-password-page {
    padding: 0 24px;
  }

  .forgot-password-header {
    padding: 20px 24px;
  }

  .header-title {
    font-size: 20px;
  }

  .forgot-password-container {
    padding: 0 24px;
  }

  .forgot-password-card,
  .setPassMain {
    max-width: 400px;
    padding: 32px 28px;
    margin-top: 50px;
  }

  .input-group-with-button,
  .input-group {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .forgot-input,
  .setPassMain input {
    font-size: 18px;
  }

  .forgot-input::placeholder,
  .setPassMain input::placeholder {
    font-size: 18px;
  }

  .verify-button {
    height: 44px !important;
    font-size: 16px !important;
    padding: 0 20px !important;
  }

  .next-button,
  .complete-button {
    height: 56px !important;
    font-size: 18px !important;
  }

  .next-button-container {
    margin-top: 50px;
    padding: 0 24px;
  }

  .password-toggle {
    width: 36px;
    height: 36px;
  }
}